﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Top.Api;
using Top.Api.Response;
using Top.Api.Request;

namespace TaoBaoServices
{
    /// <summary>
    /// 评价API
    /// </summary>
    public class TraderateAPI : BaseAPI
    {
        /// <summary>
        /// 搜索评价信息
        /// </summary>
        public static TraderatesGetResponse TradesSoldGetResponse(string sessionKey)
        {
            TraderatesGetRequest req = new TraderatesGetRequest();
            req.Fields = "tid,oid,role,rated_nick,nick,result,created,item_title,item_price,content,reply";
            req.RateType = "get";
            req.Role = "buyer";
            return client.Execute(req, sessionKey);
        }
    }
}
